package com.wondersgroup.fjzlpt.org.controller.rest.jgqy.lshgl;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.wondersgroup.fjzlpt.org.util.ControllerCommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.quick.framework.boot.web.utils.RequestUtils;
import com.wondersgroup.fjzlpt.org.service.inter.jgqy.lshgl.LshglService;

@RestController
@RequestMapping("lshgl")
public class LshglRestController {
	
	@Autowired
	private LshglService lshglService;
	
	@RequestMapping("/queryPage")
	public JSONObject queryPageYljgxx(HttpServletRequest request)
	{
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		ControllerCommonUtil.pageFormat(map);
		return lshglService.queryPage(map);
	}
	
	@RequestMapping("/save")
	public JSONObject save(HttpServletRequest request)
	{
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return lshglService.save(map);
	}
	
	@RequestMapping("/queryYljgrylb")
	public JSONObject queryYljgrylb(HttpServletRequest request)
	{
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		ControllerCommonUtil.pageFormat(map);
		return lshglService.queryYljgrylb(map);
	}
}
